package me.raih.pojo.po;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.Map;

/**
 * @Author Raih
 * @Time 2021/1/5 15:51
 *
 *
 * 订单对象
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Component
public class Bill {

    private String billNo;      //订单编号
    private Date createTime;    //购物时间

    private Map<String,Integer> sellWaresMap;  //售卖的商品信息  存放商品名称和数量
    private String sellWaresMapStr;    //字符集

    private Sales sales;    //售货员
    private String salesName; //售货员

    private User user;      //谁买？
    private String userName;

    private Double points;  //总积分
    private Double allPrice;    //总价

}
